Save A Tree v 1.54 Copyright © 1990-1994 Michael S. Engber. All Rights Reserved. Save A Tree is a text file printing utility designed to conserve paper by printing on 1 page what would normally use 2 or 4 pages. Since Save A Tree only handles 'TEXT' files, I expect its primary audience will be programmers printing source code. Although, the word wrap option makes it useful for general text printing too. Because of the small font sizes used, Save A Tree works best on high resolution printers. Use of Save A Tree is free of charge. I encourage you to share it freely. Copies of the source (THINK C) may be obtained for $20 and a disk w/SASE. Send comments & bug reports to: Michael S. Engber U.S. Mail: 3486 Golden State Dr, Santa Clara, CA 95051 ¥InterNet: engber@newton.apple.com ¥from CompuServe: >INTERNET:newton.apple.com ¥from AppleLink: engber@newton.apple.com@INTERNET# ¥on AppleLink: engber (InterNet addr preffered) ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- NOTES: Layout Menu The checked icon in the Layout menu indicate the "current" layout. This is the layout that will be used when you print. The "default" layout is the one that is initially checked when you run Save A Tree. This is the layout that is used for Finder printing (see below). File Menu ¥ PrintÉ : Prints a 'TEXT' file using the current layout. ¥ Save Layouts : Saves layout settings (in Save A Tree's resource fork) ¥ Layout SetupÉ : Lets you configure the layouts. - Radio Buttons: select which layout you're configuring. - Header Font & Size: used for date, file name, and page number - Body Font & Size: used for file contents - Word Wrap: word wrap vs truncation - Use Last Modified Date: current date vs date of last modification - Lines Per Page Limit: upper limit on lines printed on a single page - Tab Width: tab spacing - Top & Left Margins: (in points i.e. 1/72") - Print Gridlines: print lines separating virtual pages of text - Background PICT: shows underneath text (None is a blank PICT) - V-Center & H-Center: vertically and/or horizontall center background PICT - Scale To Fit: scale background PICT to page size (use for Bounding Box PICT) - Make Default: make this layout the "default" layout - Page SetupÉ : configure this layout's Page Setup settings - Å Possible Lines Per Page: guess at how many can fit on a page - Å Characters Per Line: guess at how many can fit on a line Special Characters ¥ Control L (ASCII 12) is interpreted as a page break. ¥ Tabs are handled by expanding them into blanks. So, lines with multiple tabs only print correctly in monospaced fonts. Background Pictures ¥ Add your own by pasting PICTs into SaveATree's resource fork Be sure to give each PICT a resource name since that is what is used in the Layout dialog pop-up menu. Printing Multiple Files pre-System 7.0 Print en masse from the Finder by selecting a group of TEXT files along with the Save A Tree application. Then select Print (or Open) from the File menu. The files will be printed in the default layout. Printing Multiple Files in System 7.0 Print en masse from the Finder by selecting the file(s) you want to print and dragging them over the Save A Tree application's icon (so it gets highlighted). Release the mouse and they will be printed. Irritating Page Setup Dialogs at First Time Startup The first time you run Save A Tree you may be prompted with some Page Setup dialogs. Sorry about this, but somehow I need to get print records with the proper page orientation. Currently, the only "Apple approved" method is via the Page Setup Dialog. I save them away, so this shouldn't happen again unless you get a fresh copy of Save A Tree or switch printer drivers. Note: Laserwriter users may be lucky enough to never deal with this since I have a hack that seems to work on them. Version History: 1.0 ¥ 1st release - Earth Day '90 1.1 ¥ problem fixed for Macs w/o color QuickDraw 1.3 ¥ now properly provides the Printing Manager with the document name ¥ page numbering for printing a range of pages now makes more sense ¥ hairlines ¥ option to use modification date in header 1.5 ¥ support for the System 7.0 drag & drop launching feature ¥ option for top & left margin (to avoid 3 hole punches) ¥ background PICTs ¥ single virtual page portrait & landscape layouts added ¥ limited the Page Setup dialogs at first startup to two ¥ color icons in the System 7.0 finder ¥ version is now displayed in the AboutÉ box ¥ Layout Dialog sets new standards for clutter & ugliness 1.52 ¥ bug fixes stack into heap error on 68000 machines word wrapped text on A4 pages clipped a few pixels off the right max of 8K chars on a page were printed, now 30K 1.53 ¥ now prints with fractional character widths enabled ¥ now prints files that are currently open 1.54 ¥ bug fix for tabs ¥ bug with LaserWriter 8.0 under some circumstances ¥ address in about box updated